from header_common import *
from header_operations import *
from header_triggers import *
from header_scenes import *
from module_constants import *

####################################################################################################################
#  Each scene record contains the following fields:
#  1) Scene id {string}: used for referencing scenes in other files. The prefix scn_ is automatically added before each scene-id.
#  2) Scene flags {int}. See header_scenes.py for a list of available flags
#  3) Mesh name {string}: This is used for indoor scenes only. Use the keyword "none" for outdoor scenes.
#  4) Body name {string}: This is used for indoor scenes only. Use the keyword "none" for outdoor scenes.
#  5) Min-pos {(float,float)}: minimum (x,y) coordinate. Player can't move beyond this limit.
#  6) Max-pos {(float,float)}: maximum (x,y) coordinate. Player can't move beyond this limit.
#  7) Water-level {float}. 
#  8) Terrain code {string}: You can obtain the terrain code by copying it from the terrain generator screen
#  9) List of other scenes accessible from this scene {list of strings}.
#     (deprecated. This will probably be removed in future versions of the module system)
#     (In the new system passages are used to travel between scenes and
#     the passage's variation-no is used to select the game menu item that the passage leads to.)
# 10) List of chest-troops used in this scene {list of strings}. You can access chests by placing them in edit mode.
#     The chest's variation-no is used with this list for selecting which troop's inventory it will access.
#  town_1   Sargoth     #plain
#  town_2   Tihr        #steppe
#  town_3   Veluca      #steppe
#  town_4   Suno        #plain
#  town_5   Jelkala     #plain
#  town_6   Praven      #plain
#  town_7   Uxkhal      #plain
#  town_8   Reyvadin    #plain
#  town_9   Khudan      #snow
#  town_10  Tulga       #steppe
#  town_11  Curaw       #snow
#  town_12  Wercheg     #plain
#  town_13  Rivacheg    #plain
#  town_14  Halmar      #steppe
####################################################################################################################

scenes = [
	("random_scene",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x300028000003e8fa0000034e00004b34000059be",[],[]),
	("conversation_scene",0,"encounter_spot", "bo_encounter_spot", (-40,-40),(40,40),-100,"0",[],[]),
	("random_scene_steppe",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x0000000229602800000691a400003efe00004b34000059be",[],[], "outer_terrain_steppe_1"),
	("random_scene_plain",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x0000000229602800000691a400003efe00004b34000059be",[],[], "outer_terrain_plain_1"),
	("random_scene_snow",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x0000000229602800000691a400003efe00004b34000059be",[],[], "outer_terrain_snow_1"),
	("random_scene_desert",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x0000000229602800000691a400003efe00004b34000059be",[],[], "outer_terrain_steppe_1"),
	("random_scene_steppe_forest",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x300028000003e8fa0000034e00004b34000059be",[],[], "outer_terrain_plain_1"),
	("random_scene_plain_forest",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x300028000003e8fa0000034e00004b34000059be",[],[], "outer_terrain_plain_1"),
	("random_scene_snow_forest",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x300028000003e8fa0000034e00004b34000059be",[],[], "outer_terrain_snow_1"),
	("random_scene_desert_forest",sf_generate|sf_randomize|sf_auto_entry_points,"none", "none", (0,0),(240,240),-0.5,"0x300028000003e8fa0000034e00004b34000059be",[],[], "outer_terrain_steppe_1"),
	("quick_battle_1",sf_generate,"none", "none", (0,0),(120,120),-100,"0x30401ee300059966000001bf0000299a0000638f", [],[], "outer_terrain_plain_1"),
	("quick_battle_2",sf_generate,"none", "none", (0,0),(120,120),-100,"0xa0425ccf0004a92a000063d600005a8a00003d9a", [],[], "outer_terrain_steppe_1"),
	("quick_battle_3",sf_generate,"none", "none", (0,0),(120,120),-100,"0x4c6024e3000691a400001b7c0000591500007b52", [],[], "outer_terrain_snow_1"),
	("quick_battle_4",sf_generate,"none", "none", (0,0),(120,120),-100,"0x00001d63c005114300006228000053bf00004eb9", [],[], "outer_terrain_plain_1"),
	("quick_battle_5",sf_generate,"none", "none", (0,0),(120,120),-100,"0x3a078bb2000589630000667200002fb90000179c", [],[], "outer_terrain_plain_1"),
	("quick_battle_6",sf_generate,"none", "none", (0,0),(120,120),-100,"0xa0425ccf0004a92a000063d600005a8a00003d9a", [],[], "outer_terrain_steppe_1"),
	("conversation_scene",0,"encounter_spot", "bo_encounter_spot", (-40,-40),(40,40),-100,"0",[],[]),
    ("novice_ground",sf_indoors,"interior_room_1", "bo_interior_room_1", (-200,-200),(200,200),-100,"0",[],[]),
    ("village",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000237200000c005b568000017ed0000575000001441",[],[],'outer_terrain_plain_1'),
    ("village_battle",sf_generate|sf_auto_entry_points,"none", "none", (0,0),(100,100),-100,"0x0000000237200000c005b568000017ed0000575000001441",[],[],'outer_terrain_plain_1'),
    ("town",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000235600000c00a067c00007c6d0000075300004941",[],[],'outer_terrain_plain_1'),
    ("town_battle",sf_generate|sf_auto_entry_points,"none", "none", (0,0),(100,100),-100,"0x0000000235600000c00a067c00007c6d0000075300004941",[],[],'outer_terrain_plain_1'),
    ("city",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000233600000c00d234800003bb700006ab100004efd",[],[],'outer_terrain_plain_1'),
	('city_south_ward',sf_generate,'none','none',(0,0),(100,100),-100,"0x000000003a0005000005013e00006c2200007e040000221a",[],[],'outer_terrain_plain_1'),
    ('city_north_ward',sf_generate,'none','none',(0,0),(100,100),-100,"0x0000000002000000c005856100003852000014f500000000",[],[],'outer_terrain_plain_1'),
    ('city_east_ward',sf_generate,'none','none',(0,0),(100,100),-100,"0x0000000030000500000354d20000796d000015dd00003e5f",[],[],'outer_terrain_plain_1'),
    ('city_west_ward',sf_generate,'none','none',(0,0),(100,100),-100,"0x0000000030000500000354d20000796d000015dd00003e5f",[],[],'outer_terrain_plain_1'),
	('city_port_ward',sf_generate,'none','none',(0,0),(100,100),0,"0x0000000030000500000354d20000796d000015dd00003e5f",[],[],'outer_terrain_plain_1'),
    #("river_city",sf_generate,"none", "none", (0,0),(100,100),-100,"0x3a000500800300c0000053a800001da40000099d",[],[]),
    ("city_battle",sf_generate|sf_auto_entry_points,"none","none",(0,0),(100,100),-100,"0x0000000233600000c00d234800003bb700006ab100004efd",[],[],'outer_terrain_plain_1'),
    ("guest_room",sf_indoors,"interior_room_1", "bo_interior_room_1", (-200,-200),(200,200),-100,"0",[],[]),
    ("bandit_hideout",sf_indoors,"interior_room_ell", "bo_interior_room_ell", (-200,-200),(200,200),-100,"0",[],[]),
    ("peddler",sf_generate,"none", "none", (0,0),(100,100),-100,"0xba008c000001e0780000679c000042fa00004fc9",[],[],'outer_terrain_plain_1'),
    ("small_field",sf_generate|sf_auto_entry_points,"none", "none", (0,0),(100,100),-100,"0x3b22c505000344d500001d8b00003c4000000c13",[],[],'outer_terrain_plain_1'),
    ('manor',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('store',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('smithy',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('inn',sf_indoors,'interior_room_ell','bo_interior_room_ell',(-200,-200),(200,200),-100,'0',[],['hyogo_chest']),
    ('merchant_hall',sf_indoors,'interior_room_ell','bo_interior_room_ell',(-200,-200),(200,200),-100,'0',[],[]),
    ('temple',sf_indoors,'temple1','bo_temple1',(-200,-200),(200,200),-100,'0',[],[]),
    ('south_kyoto_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('yodo_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('hikone_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('haga_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('imazu_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('oya_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('oe_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
    ('iga_dojo',sf_indoors,'interior_room_1','bo_interior_room_1',(-200,-200),(200,200),-100,'0',[],[]),
	('animation_test',sf_generate,'none','none',(0,0),(100,100),-100,'0x300005000002709c000048ae000013fe00000ff6',[],[]),
	('shinden_exterior',0,'shinden_exterior','bo_shinden_exterior',(0,0),(100,100),-100,'0',[],[]),
	('shinden_main_hall',sf_indoors,'shinden_main_hall','bo_shinden_hall',(-200,-200),(200,200),-100,'0',[],[]),
    ('shinden_east_hall',sf_indoors,'shinden_east_hall','bo_shinden_hall',(-200,-200),(200,200),-100,'0',[],[]),
	('shinden_west_hall',sf_indoors,'shinden_west_hall','bo_shinden_hall',(-200,-200),(200,200),-100,'0',[],[]),
	('shinden_east_corridor',sf_indoors,'shinden_corridor','bo_shinden_corridor',(-200,-200),(200,200),-100,'0',[],[]),
	('shinden_west_corridor',sf_indoors,'shinden_corridor','bo_shinden_corridor',(-200,-200),(200,200),-100,'0',[],[]),
	('shinden_rear_corridor_1',sf_indoors,'shinden_corridor','bo_shinden_corridor',(-200,-200),(200,200),-100,'0',[],[]),
	('shinden_rear_corridor_2',sf_indoors,'shinden_corridor','bo_shinden_corridor',(-200,-200),(200,200),-100,'0',[],[]),
	('shinden_rear_hall',sf_indoors,'shinden_rear_hall','bo_shinden_hall',(-200,-200),(200,200),-100,'0',[],[]),
	('shinden_fight',sf_indoors,'none','none',(-200,-200),(200,200),-100,'0',[],[]),
	('infiltration_prescene',sf_generate,'none','none',(0,0),(100,100),-100,'0',[],[]),
	#camp scenes
	('forest_camp',sf_generate,'none','none', (0,0),(100,100),-100,'0x00000000b7400809000715c500004cbc000032d90000760f',[],[],'outer_terrain_plain_2'),

]

